package com.ushine.web.component.design.chain.salary.handler;

import com.ushine.web.component.design.chain.salary.config.AbstractSalaryCalculateHandler;
import com.ushine.web.component.design.chain.salary.model.SalaryCalculateBO;
import com.ushine.web.component.http.HttpResponseVO;
import org.springframework.stereotype.Service;

/**
 * @Author: yls
 * @Date: 2022/03/04 10:32
 * @Description: 薪资计算汇总
 * @Version 1.0
 */
@Service
public class SummarySalaryHandler extends AbstractSalaryCalculateHandler {

    @Override
    protected HttpResponseVO<?> process(SalaryCalculateBO salaryCalculate) {
        /*
         * 所有细节项的汇总：总金额、应发金额、个人扣款、实发金额
         */
        return new HttpResponseVO<>().ok("薪资计算汇总完成。",salaryCalculate);
    }
}
